package com.xpgk.mvc.binShopService;

import java.util.List;

import com.jfinal.plugin.activerecord.Record;
import com.xpgk.mvc.base.BaseController;
import com.xpgk.mvc.leaveCustomer.LeaveCustomerXLS;

public class NearStaWeightController extends BaseController {
	private BinShopServiceService binShopServiceService = new BinShopServiceService();
	public void index(){
		render("nearStaWeight.html");
	}
	/**
	 * 查询请假顾客
	 */
	public void queryNearStaWeight(){
		List<Record> result = binShopServiceService.getNearStaWeight(getCUserOrganIds());
		renderJson(result);
	}
	/**
	 * 导出表格
	 */
	public void  excel(){	
		List<Record> list = binShopServiceService.getNearStaWeight(getCUserOrganIds());
		//搜索条件
		render(new LeaveCustomerXLS(list,"","临近标体"));
	}
}
